package _92XiangYuan.impl;

import _92XiangYuan.Shape;

/**
 * @Circle: 图形接口实现类 圆类
 * @author: ZBoHang
 * @time: 2021/9/14 15:38
 */
public class Circle implements Shape {
    private String color;
    private int x;
    private int y;
    private int radius;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    @Override
    public void draw() {
        System.out.println("圆心 -->" + x + "," + "y" + " 半径 -->" + radius);
    }
}
